]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
closeDialog: use {disable,enable}_unredirect_for_display
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Sun, 8 Jul 2018 15:37:53 +0000 (17:37 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Sun, 8 Jul 2018 15:43:15 +0000 (17:43 +0200)
Remove leftover global.screen presency

js/ui/closeDialog.js

index 7943880d8ef6113b6e5aa4af68955d2dd8b585cd..27e406434075d790775395bf46586b3ae9d26b65 100644 (file)
@@ -100,7 +100,7 @@ var CloseDialog = new Lang.Class({
         if (this._dialog != null)
             return;
 
-        Meta.disable_unredirect_for_screen(global.screen);
+        Meta.disable_unredirect_for_display(global.display);
 
         this._timeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, ALIVE_TIMEOUT,
             () => {
@@ -128,7 +128,7 @@ var CloseDialog = new Lang.Class({
         if (this._dialog == null)
             return;
 
-        Meta.enable_unredirect_for_screen(global.screen);
+        Meta.enable_unredirect_for_display(global.display);
 
         GLib.source_remove(this._timeoutId);
         this._timeoutId = 0;